package com.ml.mall.entity.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;

@Data
@TableName(value = "sys_order_reduced")
public class SysOrderReduced implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单ID：用于计算总订单优惠
     */
    @TableField(value = "oid")
    private Long oid;

    /**
     * 订单ID：用于计算供货商优惠
     */
    @TableField(value = "supplier_id")
    private Long supplierId;

    /**
     * 订单ID：详细优惠
     */
    @TableField(value = "variant_id")
    private Integer variantId;

    /**
     * 扣减ID
     */
    @TableField(value = "reduced_id")
    private Long reducedId;

    /**
     * 优惠使用金额
     */
    @TableField(value = "coupon_money_all")
    private BigDecimal couponMoneyAll;

    /**
     * 电子钱包金额
     */
    @TableField(value = "credit_money")
    private BigDecimal creditMoney;

    /**
     * 折扣编码
     */
    @TableField(value = "discount_code")
    private String discountCode;

    /**
     * 折扣金额
     */
    @TableField(value = "discount_money")
    private BigDecimal discountMoney;

    /**
     * 全部优惠金额
     */
    @TableField(value = "reduce_money_all")
    private BigDecimal reduceMoneyAll;

    private static final long serialVersionUID = 1L;
}